From: Giuseppe Scrivano Date: Tue, 24 Feb 2015 11:16:46 +0000 (+0100) Subject: static-delta: increase threshold for rollsum to 50% X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~888 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=439e1c1b9750ef5c5b4b09783ad453543217bcb5;p=ostree.git static-delta: increase threshold for rollsum to 50% It favours bsdiff usage for files that are not very rollsum friendly. Signed-off-by: Giuseppe Scrivano --- diff --git a/src/libostree/ostree-repo-static-delta-compilation.c b/src/libostree/ostree-repo-static-delta-compilation.c index 968b4601..a4e7ae42 100644 --- a/src/libostree/ostree-repo-static-delta-compilation.c +++ b/src/libostree/ostree-repo-static-delta-compilation.c @@ -568,10 +568,10 @@ try_content_rollsum (OstreeRepo *repo, { guint match_ratio = (matches->bufmatches*100)/matches->total; - /* Only proceed if the file contains (arbitrary) more than 25% of + /* Only proceed if the file contains (arbitrary) more than 50% of * the previous chunks. */ - if (match_ratio < 25) + if (match_ratio < 50) { ret = TRUE; goto out;